package com.itheima.admin.feign;

import com.itheima.admin.pojo.AdChannel;
import com.itheima.common.vo.ResultVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

@FeignClient(name = "leadnews-admin",contextId = "AdChannelFeign")
public interface AdChannelFeign {

    @GetMapping("/api/channel/all")
    ResultVo<List<AdChannel>> listAll();
}
